/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package net.sf.l2j.gameserver.model.entity.eventengine;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
 * @author Anarchy
 *
 */
public class EventPlayer
{
	private L2PcInstance _player = null;
	private AbstractEvent _event = null;
	private int[] _firstCords = { 0, 0, 0 };
	private String _firstTitle = null;
	private int _eventPoints = 0;
	
	public EventPlayer(L2PcInstance player, AbstractEvent event)
	{
		_player = player;
		_event = event;
	}
	
	public void saveXYZ()
	{
		_firstCords[0] = _player.getX();
		_firstCords[1] = _player.getY();
		_firstCords[2] = _player.getZ();
	}
	
	public int[] loadXYZ()
	{
		return _firstCords;
	}
	
	public int getEventPoints()
	{
		return _eventPoints;
	}
	
	public void setEventPoints(int val)
	{
		_eventPoints = val;
	}
	
	public void increaseEventPoints()
	{
		_eventPoints++;
	}
	
	public void saveTitle()
	{
		_firstTitle = _player.getTitle();
	}
	
	public void restoreTitle()
	{
		_player.setTitle(_firstTitle);
	}
	
	public L2PcInstance getPlayer()
	{
		return _player;
	}
	
	public AbstractEvent getEvent()
	{
		return _event;
	}
}
